package com.TTBook.core.book.model;

import java.io.Serializable;
import java.util.Date;

public class BookInfo implements Serializable {
    private String bookInfoId;

    private String bookid;

    private String authorid;

    private String pressid;

    private Date publishTime;

    private String isbn;

    private String edition;

    private String binding;

    private String impression;

    private String pagenum;

    private String bookSize;

    private String bookIntro;

    private String catalogue;

    private String perfaceContent;

    private String excerpt;

    private String authorRecomm;

    private static final long serialVersionUID = 1L;

    public String getBookInfoId() {
        return bookInfoId;
    }

    public void setBookInfoId(String bookInfoId) {
        this.bookInfoId = bookInfoId == null ? null : bookInfoId.trim();
    }

    public String getBookid() {
        return bookid;
    }

    public void setBookid(String bookid) {
        this.bookid = bookid == null ? null : bookid.trim();
    }

    public String getAuthorid() {
        return authorid;
    }

    public void setAuthorid(String authorid) {
        this.authorid = authorid == null ? null : authorid.trim();
    }

    public String getPressid() {
        return pressid;
    }

    public void setPressid(String pressid) {
        this.pressid = pressid == null ? null : pressid.trim();
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn == null ? null : isbn.trim();
    }

    public String getEdition() {
        return edition;
    }

    public void setEdition(String edition) {
        this.edition = edition == null ? null : edition.trim();
    }

    public String getBinding() {
        return binding;
    }

    public void setBinding(String binding) {
        this.binding = binding == null ? null : binding.trim();
    }

    public String getImpression() {
        return impression;
    }

    public void setImpression(String impression) {
        this.impression = impression == null ? null : impression.trim();
    }

    public String getPagenum() {
        return pagenum;
    }

    public void setPagenum(String pagenum) {
        this.pagenum = pagenum == null ? null : pagenum.trim();
    }

    public String getBookSize() {
        return bookSize;
    }

    public void setBookSize(String bookSize) {
        this.bookSize = bookSize == null ? null : bookSize.trim();
    }

    public String getBookIntro() {
        return bookIntro;
    }

    public void setBookIntro(String bookIntro) {
        this.bookIntro = bookIntro == null ? null : bookIntro.trim();
    }

    public String getCatalogue() {
        return catalogue;
    }

    public void setCatalogue(String catalogue) {
        this.catalogue = catalogue == null ? null : catalogue.trim();
    }

    public String getPerfaceContent() {
        return perfaceContent;
    }

    public void setPerfaceContent(String perfaceContent) {
        this.perfaceContent = perfaceContent == null ? null : perfaceContent.trim();
    }

    public String getExcerpt() {
        return excerpt;
    }

    public void setExcerpt(String excerpt) {
        this.excerpt = excerpt == null ? null : excerpt.trim();
    }

    public String getAuthorRecomm() {
        return authorRecomm;
    }

    public void setAuthorRecomm(String authorRecomm) {
        this.authorRecomm = authorRecomm == null ? null : authorRecomm.trim();
    }

    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof BookInfo)) {
            return false;
        }
        BookInfo other = (BookInfo) that;
        return this.getBookInfoId() == null ? other == null : this.getBookInfoId().equals(other.getBookInfoId())
            && this.getBookid() == null ? other == null : this.getBookid().equals(other.getBookid())
            && this.getAuthorid() == null ? other == null : this.getAuthorid().equals(other.getAuthorid())
            && this.getPressid() == null ? other == null : this.getPressid().equals(other.getPressid())
            && this.getPublishTime() == null ? other == null : this.getPublishTime().equals(other.getPublishTime())
            && this.getIsbn() == null ? other == null : this.getIsbn().equals(other.getIsbn())
            && this.getEdition() == null ? other == null : this.getEdition().equals(other.getEdition())
            && this.getBinding() == null ? other == null : this.getBinding().equals(other.getBinding())
            && this.getImpression() == null ? other == null : this.getImpression().equals(other.getImpression())
            && this.getPagenum() == null ? other == null : this.getPagenum().equals(other.getPagenum())
            && this.getBookSize() == null ? other == null : this.getBookSize().equals(other.getBookSize())
            && this.getBookIntro() == null ? other == null : this.getBookIntro().equals(other.getBookIntro())
            && this.getCatalogue() == null ? other == null : this.getCatalogue().equals(other.getCatalogue())
            && this.getPerfaceContent() == null ? other == null : this.getPerfaceContent().equals(other.getPerfaceContent())
            && this.getExcerpt() == null ? other == null : this.getExcerpt().equals(other.getExcerpt())
            && this.getAuthorRecomm() == null ? other == null : this.getAuthorRecomm().equals(other.getAuthorRecomm());
    }

    public int hashCode() {
        int hash = 23;
        if (getBookInfoId() != null) {
            hash *= getBookInfoId().hashCode();
        }
        if (getBookid() != null) {
            hash *= getBookid().hashCode();
        }
        if (getAuthorid() != null) {
            hash *= getAuthorid().hashCode();
        }
        if (getPressid() != null) {
            hash *= getPressid().hashCode();
        }
        if (getPublishTime() != null) {
            hash *= getPublishTime().hashCode();
        }
        if (getIsbn() != null) {
            hash *= getIsbn().hashCode();
        }
        if (getEdition() != null) {
            hash *= getEdition().hashCode();
        }
        if (getBinding() != null) {
            hash *= getBinding().hashCode();
        }
        if (getImpression() != null) {
            hash *= getImpression().hashCode();
        }
        if (getPagenum() != null) {
            hash *= getPagenum().hashCode();
        }
        if (getBookSize() != null) {
            hash *= getBookSize().hashCode();
        }
        if (getBookIntro() != null) {
            hash *= getBookIntro().hashCode();
        }
        if (getCatalogue() != null) {
            hash *= getCatalogue().hashCode();
        }
        if (getPerfaceContent() != null) {
            hash *= getPerfaceContent().hashCode();
        }
        if (getExcerpt() != null) {
            hash *= getExcerpt().hashCode();
        }
        if (getAuthorRecomm() != null) {
            hash *= getAuthorRecomm().hashCode();
        }
        return hash;
    }
}